const db = require("../conf/database");

module.exports = {
  // 获取网站信息
  getSiteInfo: async (req, res) => {
    try {
      const siteInfo = await db.query("select * from site_info");
      res.send({
        code: 1,
        data: siteInfo[0],
      });
    } catch (error) {
      res.send(error, 500);
    }
  },
};
